<template>
<avue-crud :option="option"  :data="data" ></avue-crud>
</template>
<script>
var dic=[{
  label:'选项1',
  value:1
},{
  label:'选项2',
  value:2
}]
export default {
  data(){
    return {
       search:{},
       data:[{
         selects:[1,2],
         select:1
       }],
       option:{
          column: [{
            label: '多选框',
            prop: 'selects',
            type:'select',
            multiple:true,
            search:true,
            searchType:"checkbox",
            searchSpan:24,
            dicData:dic
          },{
            label: '单选框',
            prop: 'select',
            type:'select',
            search:true,
            searchType:"radio",
            searchSpan:24,
            dicData:dic
          }]
       }
    }
  }
}
</script>